package com.cyl.h5.domain.convert;

import org.mapstruct.Mapper;


import com.cyl.h5.domain.entity.PmsAppraise;
import com.cyl.h5.domain.vo.PmsAppraiseVO;
import com.cyl.h5.domain.dto.PmsAppraiseDTO;


import java.util.List;
/**
 * 商品评价表  DO <=> DTO <=> VO / BO / Query
 *
 * @author zcc
 */
@Mapper(componentModel = "spring")
public interface PmsAppraiseConvert  {

    /**
     * @param source DO
     * @return DTO
     */
    PmsAppraiseDTO do2dto(PmsAppraise source);

    /**
     * @param source DTO
     * @return DO
     */
    PmsAppraise dto2do(PmsAppraiseDTO source);

    List<PmsAppraiseVO> dos2vos(List<PmsAppraise> list);
}
